package io.gitee.twoke.generator.engine.impl.persistence.entity;

import io.gitee.twoke.generator.engine.impl.cfg.GenerateEngineConfigurationImpl;
import io.gitee.twoke.generator.engine.impl.persistence.PropertyDataManager;
import io.gitee.twoke.generator.engine.impl.persistence.entity.data.DataManager;

import java.util.List;

public class PropertyEntityManagerImpl extends AbstractEntityManager<PropertyEntity> implements PropertyEntityManager {

  protected PropertyDataManager propertyDataManager;
  
  public PropertyEntityManagerImpl(GenerateEngineConfigurationImpl generateEngineConfiguration, PropertyDataManager propertyDataManager) {
    super(generateEngineConfiguration);
    this.propertyDataManager = propertyDataManager;
  }
  
  @Override
  protected DataManager<PropertyEntity> getDataManager() {
    return propertyDataManager;
  }
  
  @Override
  public List<PropertyEntity> findAll() {
    return propertyDataManager.findAll();
  }
  
}